package com.sxl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName users
 */
@TableName(value ="users")
@Data
public class Users implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;

    /**
     * 登录名
     */
    @TableField(value = "LoginName")
    private String loginName;

    /**
     * 密码
     */
    @TableField(value = "Password")
    private String password;

    /**
     * 是否锁定'0'未锁定’1‘锁定
     */
    @TableField(value = "isLockout")
    private Integer isLockout;

    /**
     * 最后一次登录时间
     */
    @TableField(value = "LastLoginTime")
    private String lastLoginTime;

    /**
     * 账户创建时间
     */
    @TableField(value = "CreateTime")
    private String createTime;

    /**
     * 密码错误次数
     */
    @TableField(value = "PsdwrongTime")
    private Integer psdwrongTime;

    /**
     * 被锁定时间
     */
    @TableField(value = "LockTime")
    private String lockTime;

    /**
     * 密保邮箱
     */
    @TableField(value = "ProtectEMail")
    private String protectEMail;

    /**
     * 密保手机号
     */
    @TableField(value = "ProtectMTel")
    private String protectMTel;

    @TableField(exist = false)
    private int page;

    @TableField(exist = false)
    private int limit;

    public int getPage() {
        return (page-1)*limit;
    }
    /**
     *起止时间
     */
    @TableField(exist = false)
    private String begintime;

    /**
     *结束时间
     */
    @TableField(exist = false)
    private String endtime;
    /**
     *储存排序
     */
    @TableField(exist = false)
    private String time;

    /**
     * 判断按钮是开是关
     */
    @TableField(exist = false)
    private String valid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}